#include <Arduino.h>
#include <ESP8266WiFi.h>


IPAddress serverIP(192,168,1,1);
WiFiServer server(serverIP,80);                 //创建一个tcp server连接

void setup()
{
  Serial.begin(115200);

  WiFi.mode(WIFI_AP);
  WiFi.softAP("ESP","12345678");

  server.begin();
}

void loop()
{
  Serial.print(server.available());
  Serial.print(server.hasClient());
  Serial.print(server.port());
  Serial.print(server.status());
  Serial.print(server.write(123123123));
  Serial.printf("\n");
  delay(500);
}





